package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.CheckItem;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 服务接口
 *
 * @create 2020/11/16 0016 11:26
 */
@Transactional(readOnly = true)
public interface CheckItemService {
    void add(CheckItem checkItem);
    
    @Transactional(readOnly = false)
    void delete(Integer id);
    
    @Transactional(readOnly = false)
    void edit(CheckItem checkItem);
    
    PageInfo<CheckItem> selectByCondition(QueryPageBean queryPageBean);
    
    CheckItem findById(Integer id);
    
    List<CheckItem> findAll();
}
